<?php

add_action( 'init', 'animal_post_init');

//function runs on init to create custom post type. 
function animal_post_init( ) {
	
		$animal_args = array(
			  'labels' => array (
					'name' => ('Pets'), 
			  		'singular_name' => ('Pet')
					),
			  'public' => true, 
			  'has_archive' => true, 
			  'rewrite' => array ('slug'=> 'animals'),
			  'supports' => array ('title', 'editor','thumbnail')
			 );


register_post_type('animal', $animal_args );
		
}
?>